﻿using System;
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration;
using Abp.Application.Services.Dto;
using Abp.Extensions;
using LeadThing.AbpZeroTemplate.CommandDispatches;

namespace LeadThing.AbpZeroTemplate.CommandDispatches.EntityMapper.CommandDispatches
{

    /// <summary>
    /// 指挥调度的数据配置文件
    /// </summary>
    public class CommandDispatchCfg : EntityTypeConfiguration<CommandDispatch>
    {
        /// <summary>
        ///  构造方法[默认链接字符串< see cref = "AbpZeroTemplateDbContext" /> ]
        /// </summary>
        public CommandDispatchCfg()
        {
            ToTable("CommandDispatch", AbpZeroTemplateConsts.SchemaName.Basic);



            // 名称
            Property(a => a.Title).HasMaxLength(100);
            // 好视通用户名
            Property(a => a.HSTUserId).HasMaxLength(50);
            // 好视通密码
            Property(a => a.HSTPwd).HasMaxLength(50);
            // 备注
            Property(a => a.Remarks).HasMaxLength(500);
        }
    }
}